package com.qf.controller;

import com.qf.service.ProvinceService;
import com.qf.service.impl.ProvinceServiceImpl;
import com.qf.servlet.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/province")
public class ProvinceController extends BaseServlet {

    private ProvinceService provinceService = new ProvinceServiceImpl();

    public void getProvinces(HttpServletRequest request, HttpServletResponse response) throws IOException {
        provinceService.getProvinces(request, response);
    }

    public void getCities(HttpServletRequest request, HttpServletResponse response) throws IOException {
        provinceService.getCities(request, response);
    }
}
